package com.sg.business.commons.labelprovider.work;

import org.eclipse.swt.graphics.Image;

import com.sg.business.model.WorkDeliverableDefinition;
import com.sg.business.resource.BusinessResource;
import com.sg.widgets.commons.labelprovider.ConfiguratorColumnLabelProvider;

public class WorkDeliDefAddDocHtmlLabel extends ConfiguratorColumnLabelProvider {

	@Override
	public String getText(Object element) {
		return "";
	}

	@Override
	public Image getImage(Object element) {
		if (element != null && element instanceof WorkDeliverableDefinition) {
			if (((WorkDeliverableDefinition) element).isCanCreate()) {
				return BusinessResource
						.getImage(BusinessResource.IMAGE_ADD_C_16);
			}
		}
		return null;
	}
}
